/**
 * 
 */
package wangjg.commons.sys;

import java.util.Properties;

/**
 * @author wangjg
 *
 */
public class Platform {
	private static boolean isDalvik = false;
	
	static{
		Properties props = System.getProperties();
		String osName = props.getProperty("os.name");
		String vmName = props.getProperty("java.vm.name");
		isDalvik = "Dalvik".equals(vmName);
	}
	
	public static boolean isDalvik(){
		return isDalvik;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Platform.isDalvik();
	}

}
